package com.lxj.mapper;

import com.lxj.domain.BusCustomer;
import com.lxj.dto.BusCustomDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lxj
 * @date 2021/6/16 15:43
 */
public interface BusCustomerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BusCustomer record);

    int insertSelective(BusCustomer record);

    BusCustomer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BusCustomer record);

    int updateByPrimaryKey(BusCustomer record);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    int batchDelete(@Param("ids") Integer[] ids);

    /**
     * 查询所有
     * @param dto
     * @return
     */
    List<BusCustomer> selectAll(@Param("query") BusCustomDto dto);

    /**
     * 根据身份证查询
     * @param idCard
     * @return
     */
    BusCustomer selectByIdCard(String idCard);
}